﻿using System;
using System.ComponentModel.DataAnnotations;

namespace EmgrMvc.Models
{
    public class Device
    {
        public int Id { get; set; }
        [Display(Name="名称")]
        public string Name { get; set; }
        [Display(Name = "描述")]
        public string Description { get; set; }
        [Display(Name = "类型")]
        public string Type { get; set; }
        [Display(Name = "控制器")]
        public string ControllerNode { get; set; }
        [Display(Name = "设备数据")]
        public string Data { get; set; }
        [Display(Name = "主题")]
        public string Topic { get; set; }
        [Display(Name = "状态")]
        public string Status { get; set; }
        [Display(Name = "最新消息")]
        public DateTime Latest { get; set; }
    }
}